package com.tanhua.manage.mapper;

import com.tanhua.manage.pojo.AnalysisByDay;
import com.tanhua.manage.pojo.AnalysisByMon;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface SummaryMapper {
    public AnalysisByDay queryAnalysisByDay(String recordDate);
    public List<AnalysisByMon> queryRegByMon(@Param("sd") Date sd, @Param("ed") Date ed);//按月分组查询每月新增用户数
    public List<AnalysisByMon> queryActByMon(@Param("sd") Date sd, @Param("ed") Date ed);//按月分组查询每月活跃用户数
    public List<AnalysisByMon> queryRetByMon(@Param("sd") Date sd, @Param("ed") Date ed);//按月分组查询每月次日留存数
}
